package com.jinyou.utils.oss;

import com.jinyou.utils.common.ValidateUtil;
import o2o.config.init.AutoWiredClass;

// oss 常量配饰
public interface OssConfigConstants {
    boolean isUse = AutoWiredClass.ossProperties2.isUse();
    String ENDPOINT = AutoWiredClass.ossProperties2.getEndpoint();
    String BUCKETNAME = AutoWiredClass.ossProperties2.getBucketName();
    String PICLOCATION = AutoWiredClass.ossProperties2.getPicLocation();
    String ACCESSKEYID = AutoWiredClass.ossProperties2.getAccessKeyId();
    String ACCESSKEYSECRET = AutoWiredClass.ossProperties2.getAccessKeySecret();
    String IMAGEBASEURL = ValidateUtil.isNotNull(AutoWiredClass.ossProperties2.getImageBaseUrl()) && !AutoWiredClass.ossProperties2.getImageBaseUrl().endsWith("/") ?
            AutoWiredClass.ossProperties2.getImageBaseUrl() + "/" : AutoWiredClass.ossProperties2.getImageBaseUrl();
}
